list = [2, 33, 43, 56, 89, 12, 23]
num = 20

for k in list:
  if num > k:
    print(k)

sum = 0
list = range(1, 20)
for item in list:
  if item % 2 != 0:
    sum += item

print("20以内所有奇数的和是：%d" % sum)

num1 = int(input("请输入你的数学成绩"))
num2 = int(input("请输入你的语文成绩"))

if num1 > 98 or num2 > 90:
  print("开心，我能得到妈妈奖励的礼物。")
else:
  print("不开心，我能得到爸爸的红烧狮子头。")

dic = {
  'ang': 5,
  'bao': 15,
  'cong': 75,
  'deng': 94
}

if 'ang' in dic:
  print("ang所在页码是：%d" % dic['ang'])
else:
  print("ang不在字典中")
